<@override name="head">
<title>角色管理</title>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/lib/bootbox.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/common/table.js"></script>
<script type="text/javascript" src="${ctx}/assets/js/back/sysmail.js"></script>
</@override>
<@override name="body">
<div id=content_bg>
<#include "/main/home/common.ftl"/>
     <div id= "pagecontent" style="padding-bottom:30px;">
    	<div id="content">
   			<div id="navDiv">
				<td>站内信</td>
 			</div>
 			<form id="myform" action="${ctx}/back/main/sysmail/list" method="post">
 				<input type="hidden" id="page" name="page" value="#{pager.page!}"/>
				<table border="1" class="tableFig">
				    <thead>
				        <tr class="theadTr">
				        	<th class="theadTh" style="width:5%;"><div class="checkboxStyleTh"></div></th>
							<th class="theadTh" style="width:34%;">站内信内容</th>
							<th class="theadTh" style="width:33%;">发送时间</th>
							<th class="theadTh" style="width:33%;">查看状态</th>
				        </tr>
				    </thead>
				    <tbody>
				    	<#if sysMailList ??>
					        <#list sysMailList as sysMail>
					    	<tr id="tbodyTr">
						    	<td class="tbodyTd"><div class="checkboxStyleTd" id="${sysMail.id!}"></div></td>
								<td class="tbodyTd">${sysMail.content!}</td>
								<td class="tbodyTd">${sysMail.createTime!?datetime}</td>
								<td class="tbodyTd">
									<div id="listButtons">
										<#if sysMail.status=='未读'>
											<a id="btn-unread" value=${sysMail.id!}>${sysMail.status}</a>
										<#else>
											${sysMail.status}
										</#if>
									</div>
								</td>
					        </tr>
						    </#list>
						</#if>	
				    </tbody>
				</table>
 				<div id="pageDiv" style="margin-top:0px;">
					<#include "/common/pagination/simple.ftl"/>
				</div>
 			</form>
		</div>
	</div>
</div>
</@override>
<@extends name="/common/simple.ftl"/>